package com.security.controller;

import com.security.api.R;
import com.security.feign.TestOrderFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cici
 */
@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    private TestOrderFeignClient orderFeignClient;


    @GetMapping("/say")
    public R<Boolean> say(){
        System.out.println("say!~");
        Boolean res = orderFeignClient.testFeign().getData();
        return R.status(res);
    }
}
